// 引入request
import request from '@/utils/request'
/**
 *获取联想建议数据
 * @param {String} q
 * @returns
 */
export const getSearchSuggestios = q => {
  return request({
    method: 'GET',
    url: '/v1_0/suggestion',
    params: {
      q
    }
  })
}
/**
 *获取搜索结果
 * @param {Objeat} params
 * @returns
 */
export const getSearchRusults = params => {
  return request({
    method: 'GET',
    url: '/v1_0/search',
    params
  })
}
